package com.ruoyi.nexus.user.controller;

import com.ruoyi.common.annotation.Log;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.enums.BusinessType;
import com.ruoyi.common.utils.poi.ExcelUtil;
import com.ruoyi.nexus.domain.NexusHome;
import com.ruoyi.nexus.service.INexusHomeService;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 源力星球页面Controller
 *
 * @author Afanda
 * @date 2025-04-14
 */
@RestController
@RequestMapping("/User/NexusSphere/nexusHome")
public class NexusHomeUserController extends BaseController {
    @Autowired
    private INexusHomeService nexusHomeService;

    @GetMapping("/nexus/list")
    public AjaxResult getNexusName() {
        List<NexusHome> list = nexusHomeService.getNexusName();
        return AjaxResult.success(list);
    }

}
